package com.kgc.basicprovider.service;

import com.kgc.basic.pojo.GoodsCategory;
import com.kgc.basic.util.ResponseMsg;

import java.util.List;
import java.util.Map;

public interface GoodsCategoryService {
    //根据条件查询商品分类信息
    ResponseMsg getGoodsCategoryList(Map<String,Object> paramMap);

    //根据id查询商品分类信息
    ResponseMsg getGoodsCategoryById(Integer id);

    //根据name查询商品分类信息
    ResponseMsg getGoodsCategoryByName(String name);

    //新增商品分类信息
    ResponseMsg addGoodsCategory(GoodsCategory goodsCategory);

    //更新商品分类信息
    ResponseMsg modifyGoodsCategory(GoodsCategory goodsCategory);

    //删除商品分类信息
    ResponseMsg delGoodsCategory(Integer id);

    //查询所有的分类以树形展示
    ResponseMsg showGoodsCategoryByTree();

    //根据code查询商品分类信息
    ResponseMsg getGoodsCategoryCode(String code);
    //
    ResponseMsg getGoodsCategoryByParentId(Integer parentId);
}
